//
//  Block.hpp
//  ballvsblock
//
//  Created by 宋志京 on 2017/6/15.
//
//

#ifndef Block_hpp
#define Block_hpp

#include "cocos2d.h"
USING_NS_CC;

class Block:public cocos2d::Node{
public:
    CREATE_FUNC(Block);
    virtual bool init();
    void setNum(int n);
    void hit();
    float getBlockWidth();
private:
    Sprite* block;
    int count;
    Label* countLabel;
};

#endif /* Block_hpp */
